<template>
  <div class="food-list">
    <div class="food-item" v-for="item in foodsMaterials" :key="item.id">
      <span class="name">{{ item.name }}</span>
      <span class="weight">{{ item.dosage }}</span>
    </div>
  </div>
</template>

<script>
export default {
  props: ['foodsMaterials']
}
</script>

<style lang="less" scoped>
.food-list {
  padding: 10px 15px 30px;

  .food-item {
    padding: 20px 0 10px;
    font-size: 16px;
    line-height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed #b7b7b7;

    .name {
      color: #555;
      font-size: 18px;
      font-weight: 600;
    }
    .weight {
      color: #777;
    }
  }
}
</style>
